package com.wang.service;

import com.wang.domain.ExpertEntity;
import com.wang.domain.UserEntity;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * Created by Administrator on 2017/2/11 0011.
 */
public interface IExpertService extends IService<ExpertEntity> {

    ExpertEntity findByName(String username);

    List<ExpertEntity> selectRandoms(int type, int limit);

    Page<ExpertEntity> findAll(int pageNo, int pageSize);
}
